package com.loong.shop.model;

import com.loong.common.mybatis.entity.BaseEntity;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "goods_sku")
public class GoodsSku extends BaseEntity {
    @Column(name = "goods_base_id")
    private Long goodsBaseId;

    /**
     * 规格组
     */
    @Column(name = "goods_specification")
    private String goodsSpecification;

    /**
     * 原价
     */
    @Column(name = "origin_price")
    private BigDecimal originPrice;

    /**
     * 现价
     */
    @Column(name = "current_price")
    private BigDecimal currentPrice;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 商品状态(1销售中,2已售罄,3未开售,4下架)
     */
    private Integer status;

    /**
     * 市场价
     */
    @Column(name = "market_price")
    private BigDecimal marketPrice;

    /**
     * 成本价
     */
    @Column(name = "cost_price")
    private BigDecimal costPrice;

    /**
     * 商品图片
     */
    @Column(name = "specification_pics")
    private String specificationPics;
}